﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GraphList
{
    public class Edge
    {
        private Vertex from;
        private Vertex to;

        public Edge(Vertex from, Vertex to)
        {
            this.from = from;
            this.to = to;
        }

        public Edge()
        {
            from = null;
            to = null;
        }

        public Vertex From
        {
            get { return from; }
            set { from = value; }
        }

        public Vertex To
        {
            get { return to; }
            set { to = value; }
        }
    }
}
